9 new books added to Big Book of R {https://t.co/zT84wY8Cwb} #rstats #DataScience
— R-bloggers (@Rbloggers) December 6, 2021
Heterogeneous Treatment Effects with Instrumental Variables: A Causal Machine Learning {https://t.co/PMQGBi97UH} #rstats #DataScience
— R-bloggers (@Rbloggers) December 7, 2021
Shinytableau – How To Create Tableau Dashboard Extensions With R Shiny {https://t.co/G9UIqeFgbA} #rstats #DataScience
— R-bloggers (@Rbloggers) December 7, 2021
Writing Functions in R: Working Example One {https://t.co/v23TrBGgZ1} #rstats #DataScience
— R-bloggers (@Rbloggers) December 5, 2021
The COVID19 package, an interface to the COVID-19 Data Hub {https://t.co/Gukj3lC0d8} #rstats #DataScience
— R-bloggers (@Rbloggers) December 8, 2021
Sketchy, Hand-drawn-like Maps in R {https://t.co/yPqYnARzmU} #rstats #DataScience
— R-bloggers (@Rbloggers) December 8, 2021
How to Make R Markdown Snow {https://t.co/pEnNhlgcrK} #rstats #DataScience
— R-bloggers (@Rbloggers) December 11, 2021
Successful R-based Test Package Submitted to FDA {https://t.co/oSGlFK0ogJ} #rstats #DataScience
— R-bloggers (@Rbloggers) December 9, 2021
Easy Interpretations of ADF Test in R {https://t.co/ZVp8MjP49x} #rstats #DataScience
— R-bloggers (@Rbloggers) December 5, 2021
Rules of thumb for the design of ecological experiments {https://t.co/67aFTNJk7v} #rstats #DataScience
— R-bloggers (@Rbloggers) December 8, 2021
The rise of R in public health research institutes {https://t.co/YHMDIX4uNM} #rstats #DataScience
— R-bloggers (@Rbloggers) December 7, 2021
Generating Pretty Instagram Quote Images in R {https://t.co/pICECjvk66} #rstats #DataScience
— R-bloggers (@Rbloggers) December 7, 2021
Indexing from zero in R {https://t.co/oeGvCJsAvM} #rstats #DataScience
— R-bloggers (@Rbloggers) December 6, 2021
MANOVA(Multivariate Analysis of Variance) using R {https://t.co/nae2wc4h04} #rstats #DataScience
— R-bloggers (@Rbloggers) November 23, 2021
How to Build Interactive Google Maps With R Shiny – A Complete Guide {https://t.co/3GTNDbCwEg} #rstats #DataScience
— R-bloggers (@Rbloggers) November 23, 2021
How to go from R to nice tables in Microsoft Word {https://t.co/56kqx2sTrE} #rstats #DataScience
— R-bloggers (@Rbloggers) November 24, 2021
Cluster analysis using R {https://t.co/l3pWgoJ8Rn} #rstats #DataScience
— R-bloggers (@Rbloggers) November 17, 2021
My Courses are now Free {https://t.co/22fMz1NNDA} #rstats #DataScience
— R-bloggers (@Rbloggers) December 3, 2021
Publication-ready tables with flextable and own theme in R {https://t.co/yMkLazl4fC} #rstats #DataScience
— R-bloggers (@Rbloggers) November 26, 2021
Chi-Square test using R {https://t.co/pnPsJcWnTk} #rstats #DataScience
— R-bloggers (@Rbloggers) November 15, 2021
Analysis of Covariance (ANCOVA) using R {https://t.co/W7V7OJNi4R} #rstats #DataScience
— R-bloggers (@Rbloggers) November 14, 2021
R Shiny Apps in 100 Seconds {https://t.co/ytJjXmLdA6} #rstats #DataScience
— R-bloggers (@Rbloggers) November 18, 2021
Detecting topics in mails, tweets, etc.: How to create a text classification algorithm in R {https://t.co/nwz6Iu5hDa} #rstats #DataScience
— R-bloggers (@Rbloggers) November 29, 2021
Principal Component Analysis: a brief intro for biologists {https://t.co/tsQxOZEGgT} #rstats #DataScience
— R-bloggers (@Rbloggers) November 24, 2021
Random Forest in R {https://t.co/Xd10FF5xvb} #rstats #DataScience
— R-bloggers (@Rbloggers) November 15, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```